import request from '@/config/axios'

export interface WagePaintUnitPriceVO {
  dictPaintProcess: number
  deviceName: string
  specification: string
  projectContent: string
  manHour: number
  unitPrice: number
  dictStatus: number
  remark: string
}

// 查询配置中心 -- 工资考核 -- 油漆电工单价列表
export const getWagePaintUnitPricePage = async (params) => {
  return await request.get({ url: `/config/wage-paint-unit-price/page`, params })
}

// 查询配置中心 -- 工资考核 -- 油漆电工单价详情
export const getWagePaintUnitPrice = async (id: number) => {
  return await request.get({ url: `/config/wage-paint-unit-price/get?id=` + id })
}

// 新增配置中心 -- 工资考核 -- 油漆电工单价
export const createWagePaintUnitPrice = async (data: WagePaintUnitPriceVO) => {
  return await request.post({ url: `/config/wage-paint-unit-price/create`, data })
}

// 修改配置中心 -- 工资考核 -- 油漆电工单价
export const updateWagePaintUnitPrice = async (data: WagePaintUnitPriceVO) => {
  return await request.put({ url: `/config/wage-paint-unit-price/update`, data })
}

// 删除配置中心 -- 工资考核 -- 油漆电工单价
export const deleteWagePaintUnitPrice = async (id: number) => {
  return await request.delete({ url: `/config/wage-paint-unit-price/delete?id=` + id })
}

// 导出配置中心 -- 工资考核 -- 油漆电工单价 Excel
export const exportWagePaintUnitPrice = async (params) => {
  return await request.download({ url: `/config/wage-paint-unit-price/export-excel`, params })
}
